{% extends "app/base.html" %}
{% block title %}
    修改图书信息
{% endblock %}

{% block content-header %}
    修改图书信息
    <div style="float: right;">
        <a class="btn btn-default btn-xs" href="/app/book/">
            <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 返回
        </a>
    </div>
{% endblock content-header %}
{% block content-body %}

    <form class="form-horizontal" action="/app/book/set/{{ info.id }}" method="post">
        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">书名</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="title" placeholder="书名" value="{{ info.title }}">
            </div>
        </div>
        <div class="form-group">
            <label for="pubDate" class="col-sm-2 control-label">出版日期</label>
            <div class="col-sm-5">
                <input type="date" class="form-control" name="pubDate" placeholder="出版日期" value="{{ info.pubDate }}">
            </div>
        </div>
        <div class="form-group">
            <label for="price" class="col-sm-2 control-label">价格</label>
            <div class="col-sm-5">
                <input type="number" class="form-control" name="price" placeholder="价格" value="{{ info.price }}">
            </div>
        </div>
        <div class="form-group">
            <label for="publish" class="col-sm-2 control-label">出版社</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="publish" placeholder="出版社" value="{{ info.publish }}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
            </div>
        </div>
    </form>
{% endblock content-body%}